package com.util.ossutil;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DataShareConfig {
    public static String OSS_ENDPOINT;
    public static String APK_DETAIL_URL;
    //密钥
    public static String KEY;
    //加密偏移量串iv
    public static String IV;
    //OSS bucket
    public static String OSS_BUCKET;
    //STS客户端AK信息
    public static String ACCESS_KEY_ID_ENV;
    public static String ACCESS_KEY_SECRET_ENV;
    public static String ROLE_ARN_ENV;
    //STS endpoint
    public static String STS_ENDPOINT_EVV;
    //角色Session名称
    public static String ROLE_SESSION_NAME_ENV;
    //同步更新状态
    public static String SYNC_STATUS_URL;
    //应用新增
    public static String SYNC_APK_INFO;

    static {
        if (true) {
            OSS_ENDPOINT = "oss-cn-beijing.aliyuncs.com";
            KEY = "DNfX9BFUUax0yVLPdBgJ35xBF8A93ebH";
            IV = "02pV8dpQpr1uxQYd";
            OSS_BUCKET = "appaea";
            ACCESS_KEY_ID_ENV = "LTAI5tMbdXRgiJ7LHc6wic2L";
            ACCESS_KEY_SECRET_ENV = "qgqySwwIEblPgc6xb2NXDmJnZQf9mn";
            ROLE_ARN_ENV = "acs:ram::1662985551520431:role/appaea-xiaomi";
            STS_ENDPOINT_EVV = "sts.cn-beijing.aliyuncs.com";
            ROLE_SESSION_NAME_ENV = "appaea-xiaomi";
            APK_DETAIL_URL = "https://api.appaea.com/api/external/queryApkDetail";
            SYNC_STATUS_URL = "https://api.appaea.com/api/external/syncApkStatus";
            SYNC_APK_INFO = "https://api.appaea.com/api/external/syncApkInfo";
        } else {
            OSS_ENDPOINT = "oss-cn-beijing.aliyuncs.com";
            KEY = "eMmyuAYTq64CexZXliyQEiPmj4DIGBjQ";
            IV = "cBc6TpLRv2OpfeA3";
            OSS_BUCKET = "appaea-test";
            ACCESS_KEY_ID_ENV = "LTAI5t9aGKnwyEVHPLbKYMhu";
            ACCESS_KEY_SECRET_ENV = "osSnL03SVHrwRdPyOW41fZXPs7iqVF";
            ROLE_ARN_ENV = "acs:ram::1662985551520431:role/appaea-test-lianmeng";
            STS_ENDPOINT_EVV = "sts.cn-beijing.aliyuncs.com";
            ROLE_SESSION_NAME_ENV = "appaea-xiaomi-test";
            APK_DETAIL_URL = "http://test.appaea.com/api/external/queryApkDetail";
            SYNC_STATUS_URL = "http://test.appaea.com/api/external/syncApkStatus";
            SYNC_APK_INFO = "http://test.appaea.com/api/external/syncApkInfo";
        }
    }
}
